<template>
  <div>
      <input type="text" v-model="username">
      <button @click="login">login</button>
  </div>
</template>

<script>
export default {
    data() {
        return {
            username: ''
        }
    },
    methods: {
        login() {
            localStorage.setItem('isLogin', 'true')
        }
    }
}
</script>

<style>

</style>